import {
  createRouter,
  createWebHistory,
  createWebHashHistory,
} from "vue-router";
import HomeView from "../views/HomeView.vue";
export const routes = [
  {
    path: "/",
    name: "home",
    components: {
      default: HomeView,
      rightside: () => import("../views/AboutView.vue"),
    },
  },
  {
    path: "/about",
    name: "about",
    // route level code-splitting
    // this generates a separate chunk (About.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import("../views/AboutView.vue"),
  },
  {
    path: "/a1a2",
    name: "a1a2",
    component: () => import("../views/A1.vue"),
  },
  {
    path: "/a1a3",
    name: "a1a3",
    component: () => import("../views/BlogAdd.vue"),
  },
];
const router = createRouter({
  // history: createWebHashHistory(import.meta.env.BASE_URL),
  history: createWebHistory(),
  routes,
});

export default router;
